

class Archive(object):
    def __init__(self, file, name, version, releas):
        self.id_archive = 0
        self.id_snapshot = 0
        self.id_component = 0
        self.file = file
        self.name = name
        self.version = version
        self.releas = releas
        self.changelog = ''
        self.build_host=''
        self.build_time=''
        self.sha1=''
        self.md5sum=''
        self.size=0
        self.installed_size=0
        self.prein=''
        self.postin=''
        self.preun=''
        self.postun=''
        self.from_archive=''
        self.is_source=False
        self.license = ''
        self.creator = ''
        self.file_count=0
        self.sloc_count=0
                    
    def __repr__(self):
        return "<Archive('%s','%s', '%s')>" % (self.name, self.file, self.version)